ItemPassageView = function(){
	this.tpl = new Ext.XTemplate('<tpl for="."><div class="item-view-passage">{content}</div></tpl><br>');
	
	this.viewer = new Ext.DataView({
		tpl: this.tpl,
		store: DataStoreCollection.getEmptyStore(),
		autoHeight: true,
		scroll: false,
		emptyText: 'No item to display',
		itemSelector: 'div.item-view-passage'
	});
	
	ItemPassageView.superclass.constructor.call(this, {
		id: 'item_passage_view',
		items: this.viewer,
		autoHeight: true,
	});
};

Ext.extend(ItemPassageView, Ext.Panel, {
	setPassage: function(passage){
		if(passage){
			var store = DataStoreCollection.makeItemPassageStore(passage.content)
			this.viewer.bindStore(store);
		}
	}
});